<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Swiper demo</title>
    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="css/swiper-4.2.2.min.css">

    <!-- Demo styles -->
    <style>
        body {
            background: #eee;
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
            font-size: 14px;
            color:#000;
            margin: 0;
            padding: 0;
        }
        .swiper-wrapper{
            transition-delay:.3s;
        }
        .swiper-container {
            width: 500px;
            height: 300px;
            margin: 20px auto;
        }
        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;

            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }
        .swiper-slide:nth-child(2n-1){
            background: #99d6f2;
            color:#fff;}
        .swiper-slide p{
            transform:translateX(-200px);
            opacity:0;
            transition:all .4s;}
        .ani-slide p{
            transform:translateX(0);
            opacity:1;
        }
    </style>
</head>
<body>
<!-- Swiper -->
<div class="swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide"><p>Slide 1</p></div>
        <div class="swiper-slide"><p>Slide 2</p></div>
        <div class="swiper-slide"><p>Slide 3</p></div>
        <div class="swiper-slide"><p>Slide 1</p></div>
        <div class="swiper-slide"><p>Slide 2</p></div>
        <div class="swiper-slide"><p>Slide 3</p></div>
        <div class="swiper-slide"><p>Slide 1</p></div>
        <div class="swiper-slide"><p>Slide 2</p></div>
        <div class="swiper-slide"><p>Slide 3</p></div>
        <div class="swiper-slide"><p>Slide 1</p></div>
        <div class="swiper-slide"><p>Slide 2</p></div>
        <div class="swiper-slide"><p>Slide 3</p></div>
        <div class="swiper-slide"><p>Slide 1</p></div>
        <div class="swiper-slide"><p>Slide 2</p></div>
        <div class="swiper-slide"><p>Slide 3</p></div>
        <div class="swiper-slide"><p>Slide 1</p></div>
        <div class="swiper-slide"><p>Slide 2</p></div>
        <div class="swiper-slide"><p>Slide 3</p></div>
    </div>
    <div class="swiper-pagination"></div>
</div>

<!-- Swiper JS -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/swiper-4.2.2.min.js"></script>

<!-- Initialize Swiper -->
<script>
    var swiper = new Swiper('.swiper-container',{

        followFinger : false,
        speed:500,
        mousewheel: true,
        pagination : {
            el:'.swiper-pagination',
        },
        on:{
            init:function(swiper){
                slide=this.slides.eq(0);
                slide.addClass('ani-slide');
            },
            transitionStart: function(){
                for(i=0;i<this.slides.length;i++){
                    slide=this.slides.eq(i);
                    slide.removeClass('ani-slide');
                }
            },
            transitionEnd: function(){
                slide=this.slides.eq(this.activeIndex);
                slide.addClass('ani-slide');

            },
        }
    });

</script>
</body>
</html>